# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=takeover
pkgver=98.a058647
pkgrel=7
pkgdesc='Sub-Domain TakeOver Vulnerability Scanner.'
groups=('blackarch' 'blackarch-scanner')
arch=('any')
url='https://github.com/m4ll0k/takeover'
license=('MIT')
depends=('python' 'python-requests' 'python-urllib3')
makedepends=('git')
source=("git+https://github.com/m4ll0k/$pkgname.git")
sha512sums=('SKIP')

pkgver() {
  cd $pkgname

  echo $(git rev-list --count HEAD).$(git rev-parse --short HEAD)
}

package() {
  cd $pkgname

  install -Dm 755 takeover.py "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README.md
}

